<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui">

<h:head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<title>Meu Sistema</title>
	<style type="text/css">
body {
	background-color: #eeeeee;
	font-size: 12px
}
</style>

</h:head>
<h:body>

	<div align="center">
		<h:link outcome="/page/index.xhtml">HOME</h:link>||<p:commandButton value="Login" type="button" onclick="dlg2.show();" styleClass="ui-icon ui-icon-locked" />
		<h:form id="frm_login">
			<p:dialog header="Modal Dialog" widgetVar="dlg2" modal="true" height="150">
				<h:panelGrid columns="2" >
					<h:outputLabel value="Usuario" /><h:inputText value="#{loginAction.usuario.usuario}" />
					<h:outputLabel value="Senha" /><h:inputSecret value="#{loginAction.usuario.senha}" />
					<h:commandButton value="Enviar" action="#{loginAction.logar}" />
				</h:panelGrid>
			</p:dialog>
		</h:form>
		
		<h:form>
			<p:menubar>
				<p:submenu label="Cadastro" rendered="#{loginAction.usuario.menuAdministrador}">
					<p:submenu label="Novo">
						<p:menuitem value="Jogo" url="/page/jogos.xhtml"  />
					</p:submenu>
				</p:submenu>
				<p:menuitem value="Quem somos" ></p:menuitem>
			</p:menubar>
		</h:form>

		<!--
		<p:layout style="min-width:1020px;max-width:1020px;min-height:900px">
			
			<p:layoutUnit position="center" style="text-align:left" >
				<h:form>
					<p:menubar>
					<p:submenu label="Cadastro" >
						<p:submenu label="Novo">
							<p:menuitem value="Jogo" url="/page/jogos.xhtml" />
						</p:submenu>
					</p:submenu>
				</p:menubar>
				</h:form>
				<ui:insert name="centro" >
                	O que estiver aqui será substituido!
                </ui:insert>
			</p:layoutUnit>
		</p:layout>
		-->
	</div>
</h:body>
</html>